package com.dbdata.move.model;

// Generated cafuc by Hibernate Tools 4

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TaskDocDetails generated by hbm2java
 */
@Entity
@Table(name = "task_doc_details")
public class TaskDocDetails implements java.io.Serializable {

	private Long id;
	private UserBaseInfo userBaseInfoByCrewUser;
	private FlightCharacter flightCharacterByCrewCharacter;
	private UserBaseInfo userBaseInfoByRightUser;
	private UserBaseInfo userBaseInfoByLeftUser;
	private UserBaseInfo userBaseInfoByDutyTeacher;
	private TrainPlan trainPlan;
	private Airport airportByStartAirport;
	private FlightCharacter flightCharacterByLeftCharacter;
	private FlyBase flyBase;
	private FlightCharacter flightCharacterByRightCharacter;
	private TaskDoc taskDoc;
	private Airport airportByEndAirport;
	private int leftCount;
	private Integer rightCount;
	private Date startTime;
	private Date endTime;
	private int countTime;
	private boolean cutTo;
	private boolean instrument;
	private boolean vrille;
	private boolean addTo;
	private boolean recordFlag;
	private boolean deleted;
	private Date createTime;
	private Boolean leftHourSubsidy;
	private Boolean rightHourSubsidy;
	private Boolean crewHourSubsidy;
	private Boolean dutyHourSubsidy;

	public TaskDocDetails() {
	}

	public TaskDocDetails(UserBaseInfo userBaseInfoByLeftUser,
			Airport airportByStartAirport,
			FlightCharacter flightCharacterByLeftCharacter, FlyBase flyBase,
			TaskDoc taskDoc, Airport airportByEndAirport, int leftCount,
			Date startTime, Date endTime, int countTime, boolean cutTo,
			boolean instrument, boolean vrille, boolean addTo,
			boolean recordFlag, boolean deleted) {
		this.userBaseInfoByLeftUser = userBaseInfoByLeftUser;
		this.airportByStartAirport = airportByStartAirport;
		this.flightCharacterByLeftCharacter = flightCharacterByLeftCharacter;
		this.flyBase = flyBase;
		this.taskDoc = taskDoc;
		this.airportByEndAirport = airportByEndAirport;
		this.leftCount = leftCount;
		this.startTime = startTime;
		this.endTime = endTime;
		this.countTime = countTime;
		this.cutTo = cutTo;
		this.instrument = instrument;
		this.vrille = vrille;
		this.addTo = addTo;
		this.recordFlag = recordFlag;
		this.deleted = deleted;
	}

	public TaskDocDetails(UserBaseInfo userBaseInfoByCrewUser,
			FlightCharacter flightCharacterByCrewCharacter,
			UserBaseInfo userBaseInfoByRightUser,
			UserBaseInfo userBaseInfoByLeftUser,
			UserBaseInfo userBaseInfoByDutyTeacher, TrainPlan trainPlan,
			Airport airportByStartAirport,
			FlightCharacter flightCharacterByLeftCharacter, FlyBase flyBase,
			FlightCharacter flightCharacterByRightCharacter, TaskDoc taskDoc,
			Airport airportByEndAirport, int leftCount, Integer rightCount,
			Date startTime, Date endTime, int countTime, boolean cutTo,
			boolean instrument, boolean vrille, boolean addTo,
			boolean recordFlag, boolean deleted, Date createTime,
			Boolean leftHourSubsidy, Boolean rightHourSubsidy,
			Boolean crewHourSubsidy, Boolean dutyHourSubsidy) {
		this.userBaseInfoByCrewUser = userBaseInfoByCrewUser;
		this.flightCharacterByCrewCharacter = flightCharacterByCrewCharacter;
		this.userBaseInfoByRightUser = userBaseInfoByRightUser;
		this.userBaseInfoByLeftUser = userBaseInfoByLeftUser;
		this.userBaseInfoByDutyTeacher = userBaseInfoByDutyTeacher;
		this.trainPlan = trainPlan;
		this.airportByStartAirport = airportByStartAirport;
		this.flightCharacterByLeftCharacter = flightCharacterByLeftCharacter;
		this.flyBase = flyBase;
		this.flightCharacterByRightCharacter = flightCharacterByRightCharacter;
		this.taskDoc = taskDoc;
		this.airportByEndAirport = airportByEndAirport;
		this.leftCount = leftCount;
		this.rightCount = rightCount;
		this.startTime = startTime;
		this.endTime = endTime;
		this.countTime = countTime;
		this.cutTo = cutTo;
		this.instrument = instrument;
		this.vrille = vrille;
		this.addTo = addTo;
		this.recordFlag = recordFlag;
		this.deleted = deleted;
		this.createTime = createTime;
		this.leftHourSubsidy = leftHourSubsidy;
		this.rightHourSubsidy = rightHourSubsidy;
		this.crewHourSubsidy = crewHourSubsidy;
		this.dutyHourSubsidy = dutyHourSubsidy;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CREW_USER")
	public UserBaseInfo getUserBaseInfoByCrewUser() {
		return this.userBaseInfoByCrewUser;
	}

	public void setUserBaseInfoByCrewUser(UserBaseInfo userBaseInfoByCrewUser) {
		this.userBaseInfoByCrewUser = userBaseInfoByCrewUser;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CREW_CHARACTER")
	public FlightCharacter getFlightCharacterByCrewCharacter() {
		return this.flightCharacterByCrewCharacter;
	}

	public void setFlightCharacterByCrewCharacter(
			FlightCharacter flightCharacterByCrewCharacter) {
		this.flightCharacterByCrewCharacter = flightCharacterByCrewCharacter;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "RIGHT_USER")
	public UserBaseInfo getUserBaseInfoByRightUser() {
		return this.userBaseInfoByRightUser;
	}

	public void setUserBaseInfoByRightUser(UserBaseInfo userBaseInfoByRightUser) {
		this.userBaseInfoByRightUser = userBaseInfoByRightUser;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "LEFT_USER", nullable = false)
	public UserBaseInfo getUserBaseInfoByLeftUser() {
		return this.userBaseInfoByLeftUser;
	}

	public void setUserBaseInfoByLeftUser(UserBaseInfo userBaseInfoByLeftUser) {
		this.userBaseInfoByLeftUser = userBaseInfoByLeftUser;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "DUTY_TEACHER")
	public UserBaseInfo getUserBaseInfoByDutyTeacher() {
		return this.userBaseInfoByDutyTeacher;
	}

	public void setUserBaseInfoByDutyTeacher(
			UserBaseInfo userBaseInfoByDutyTeacher) {
		this.userBaseInfoByDutyTeacher = userBaseInfoByDutyTeacher;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "PLAN_ID")
	public TrainPlan getTrainPlan() {
		return this.trainPlan;
	}

	public void setTrainPlan(TrainPlan trainPlan) {
		this.trainPlan = trainPlan;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "START_AIRPORT", nullable = false)
	public Airport getAirportByStartAirport() {
		return this.airportByStartAirport;
	}

	public void setAirportByStartAirport(Airport airportByStartAirport) {
		this.airportByStartAirport = airportByStartAirport;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "LEFT_CHARACTER", nullable = false)
	public FlightCharacter getFlightCharacterByLeftCharacter() {
		return this.flightCharacterByLeftCharacter;
	}

	public void setFlightCharacterByLeftCharacter(
			FlightCharacter flightCharacterByLeftCharacter) {
		this.flightCharacterByLeftCharacter = flightCharacterByLeftCharacter;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "BASE_ID", nullable = false)
	public FlyBase getFlyBase() {
		return this.flyBase;
	}

	public void setFlyBase(FlyBase flyBase) {
		this.flyBase = flyBase;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "RIGHT_CHARACTER")
	public FlightCharacter getFlightCharacterByRightCharacter() {
		return this.flightCharacterByRightCharacter;
	}

	public void setFlightCharacterByRightCharacter(
			FlightCharacter flightCharacterByRightCharacter) {
		this.flightCharacterByRightCharacter = flightCharacterByRightCharacter;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "TASK_DOC_ID", nullable = false)
	public TaskDoc getTaskDoc() {
		return this.taskDoc;
	}

	public void setTaskDoc(TaskDoc taskDoc) {
		this.taskDoc = taskDoc;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "END_AIRPORT", nullable = false)
	public Airport getAirportByEndAirport() {
		return this.airportByEndAirport;
	}

	public void setAirportByEndAirport(Airport airportByEndAirport) {
		this.airportByEndAirport = airportByEndAirport;
	}

	@Column(name = "LEFT_COUNT", nullable = false)
	public int getLeftCount() {
		return this.leftCount;
	}

	public void setLeftCount(int leftCount) {
		this.leftCount = leftCount;
	}

	@Column(name = "RIGHT_COUNT")
	public Integer getRightCount() {
		return this.rightCount;
	}

	public void setRightCount(Integer rightCount) {
		this.rightCount = rightCount;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "START_TIME", nullable = false, length = 19)
	public Date getStartTime() {
		return this.startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "END_TIME", nullable = false, length = 19)
	public Date getEndTime() {
		return this.endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	@Column(name = "COUNT_TIME", nullable = false)
	public int getCountTime() {
		return this.countTime;
	}

	public void setCountTime(int countTime) {
		this.countTime = countTime;
	}

	@Column(name = "CUT_TO", nullable = false)
	public boolean isCutTo() {
		return this.cutTo;
	}

	public void setCutTo(boolean cutTo) {
		this.cutTo = cutTo;
	}

	@Column(name = "INSTRUMENT", nullable = false)
	public boolean isInstrument() {
		return this.instrument;
	}

	public void setInstrument(boolean instrument) {
		this.instrument = instrument;
	}

	@Column(name = "VRILLE", nullable = false)
	public boolean isVrille() {
		return this.vrille;
	}

	public void setVrille(boolean vrille) {
		this.vrille = vrille;
	}

	@Column(name = "ADD_TO", nullable = false)
	public boolean isAddTo() {
		return this.addTo;
	}

	public void setAddTo(boolean addTo) {
		this.addTo = addTo;
	}

	@Column(name = "RECORD_FLAG", nullable = false)
	public boolean isRecordFlag() {
		return this.recordFlag;
	}

	public void setRecordFlag(boolean recordFlag) {
		this.recordFlag = recordFlag;
	}

	@Column(name = "DELETED", nullable = false)
	public boolean isDeleted() {
		return this.deleted;
	}

	public void setDeleted(boolean deleted) {
		this.deleted = deleted;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME", length = 19)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "LEFT_HOUR_SUBSIDY")
	public Boolean getLeftHourSubsidy() {
		return this.leftHourSubsidy;
	}

	public void setLeftHourSubsidy(Boolean leftHourSubsidy) {
		this.leftHourSubsidy = leftHourSubsidy;
	}

	@Column(name = "RIGHT_HOUR_SUBSIDY")
	public Boolean getRightHourSubsidy() {
		return this.rightHourSubsidy;
	}

	public void setRightHourSubsidy(Boolean rightHourSubsidy) {
		this.rightHourSubsidy = rightHourSubsidy;
	}

	@Column(name = "CREW_HOUR_SUBSIDY")
	public Boolean getCrewHourSubsidy() {
		return this.crewHourSubsidy;
	}

	public void setCrewHourSubsidy(Boolean crewHourSubsidy) {
		this.crewHourSubsidy = crewHourSubsidy;
	}

	@Column(name = "DUTY_HOUR_SUBSIDY")
	public Boolean getDutyHourSubsidy() {
		return this.dutyHourSubsidy;
	}

	public void setDutyHourSubsidy(Boolean dutyHourSubsidy) {
		this.dutyHourSubsidy = dutyHourSubsidy;
	}

}
